package util;

import com.obs.services.ObsClient;

/**
 * @program: sijiacheng-obs-use
 * @create: 2023-06-29
 * 删除对象
 **/
public class OBSDeleteFile {
    public static void main(String[] args) {
        // Endpoint以实际情况填写。
        String endPoint = "https://obs.cn-south-1.myhuaweicloud.com";
        String ak = "RKN67AS*****LX55K";
        String sk = "ycddw9tac*****nC8cVLP2aANLmtQermn";

        // 创建ObsClient实例
        ObsClient obsClient = new ObsClient(ak, sk, endPoint);
        obsClient.deleteObject("obs-ggj", "mytest1");

    }
}
